package cn.boyu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yn
 * @since 2022-11-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Customer implements Serializable {

    private static final long serialVersionUID=1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户编号
     */
    private String custId;

    /**
     * 用户名称
     */
    private String custName;

    /**
     * 用户地址
     */
    private String custAddr;

    /**
     * 用户类型（居民、企业）
     */
    private Integer custType;

    @TableField(exist = false)
    private String custTypeString;

    /**
     * 管理单位
     */
    private Integer manageCompany;

    @TableField(exist = false)
    private String manageCompanyString;



    /**
     * 电价（商业、民用）
     */
    private Integer electrovalence;

    @TableField(exist = false)
    private String electrovalenceString;

    /**
     * 立户日期
     */
    private Date createTime;

    /**
     * 电表号
     */
    private Long ammeterId;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 删除标识
     */
    private Integer delFlg;

}
